﻿@model Solution.Business.Entities.Advertise

@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Advertise</legend>

    <div class="display-label">Tên quảng cáo :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">Hình ảnh đại diện :</div>
    <div class="display-field">
        <img src="@Model.Image" />
    </div>

    <div class="display-label">Trang liên kết :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Link)
    </div>

    <div class="display-label">Vị trí quảng cáo :</div>
    <div class="display-field">
         @{
            if(Model.Position == 1)
            {
                @Html.Label("Logo")
            }
            else
            {
                @Html.Label("Banner")
            }
            }
    </div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
